package com.atguigu.spzx.user.mapper;

import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.h5.UserAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LT
 * @create 2023-11-21-18:12
 */
@Mapper
public interface UserAddressMapper {

    UserAddress findUserAddressById(Long id);

    List<UserAddress> findUserAddressListByUserId(Long userId);

    void updateDefaultByUserId(@Param("status") int status,@Param("userId") Long userId);


    void save(UserAddress userAddress);

}
